<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="" 
 style="margin-left: 10%;">

    <!-- 配送点名称 -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('配送点名称')}:</label>
        <div class="col-xs-12 col-sm-5">
            <input id="c-point" data-rule="required" class="form-control" name="row[point]" type="text"
             value="{$row.point}">
        </div>
    </div>
    <!-- 所属航线 -->
    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-3">{:__('所属航线')}:</label>
        <div class="col-xs-12 col-sm-5">
            {:build_select('row[airline_id]', $airline_list, $row['airline_id'], ['class'=>'selectpicker', 'required'=>''])}
        </div>
    </div>
    <!-- 配送点所属航线顺序 -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('所属航线顺序')}:</label>
        <div class="col-xs-12 col-sm-5">
            <input id="c-route_xh" data-rule="required" class="form-control" name="row[route_xh]" type="number"
            value="{$row.route_xh}">
        </div>
    </div>
    <!-- 是否航线起点 -->
    <div class="form-group">
        <label for="c-start" class="control-label col-xs-12 col-sm-3">{:__('是否为航线起点')}:</label>
        <div class="col-xs-12 col-sm-5">
            <select  id="c-start" class="form-control selectpicker" name="row[is_start_point]">
                <option value="0" {if $row.is_start_point==0}selected{/if}>否</option>
                <option value="1" {if $row.is_start_point==1}selected{/if}>是</option>
            </select>
        </div>
    </div>
    <!-- 是否航线终点 -->
    <div class="form-group">
        <label for="c-end" class="control-label col-xs-12 col-sm-3">{:__('是否为航线终点')}:</label>
        <div class="col-xs-12 col-sm-5">
            <select  id="c-end" class="form-control selectpicker" name="row[is_end_point]">
                <option value="0" {if $row.is_end_point==0}selected{/if}>否</option>
                <option value="1" {if $row.is_end_point==1}selected{/if}>是</option>
            </select>
        </div>
    </div>
    <!-- 经度 -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('经度')}:</label>
        <div class="col-xs-12 col-sm-5">
            <input id="c-lon" class="form-control" name="row[lon]" type="text"
            value="{$row.lon}">
        </div>
    </div>
    <!-- 纬度 -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('纬度')}:</label>
        <div class="col-xs-12 col-sm-5">
            <input id="c-lat" class="form-control" name="row[lat]" type="text"
            value="{$row.lat}">
        </div>
    </div>
    <!-- 与上一个途经点距离（km） -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('与上一个途经点距离')}:</label>
        <div class="col-xs-12 col-sm-5" style="display: flex;align-items: center;">
            <input id="c-prev_distance" class="form-control" name="row[prev_distance]"
             type="text" value="{$row.prev_distance}"> 
            <div style="margin-left: 10px;">km</div>
        </div>
    </div>
    <!-- 与下一个途经点距离（km） -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('与下一个途经点距离')}:</label>
        <div class="col-xs-12 col-sm-5" style="display: flex;align-items: center;">
            <input id="c-next_distance" class="form-control" name="row[next_distance]" 
            type="text" value="{$row.next_distance}">
            <div style="margin-left: 10px;">km</div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-3"></label>
        <div class="col-xs-12 col-sm-5" style="text-align: center;">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>